package com.enterprise.support.utility;

/**
 * Created by IntelliJ IDEA.
 * User: Zhanggaojiang
 * Date: 11-1-19
 * Time: 上午10:36
 * Email: z82422@gmail.com
 * Web层 提交表单结束 后回显信息时 需要的一个
 * 内容呈现对象
 */
public class WebMessageBox {
    public String message;

    public WebMessageBox(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return message;
    }

    public void destroy() {
        ActionContext.getContext().getSession().removeAttribute(WebUtility.WEB_SESSION_SHOW_MSG_BOX_KEY);
    }
}
